<template>
	<view class="div">
		<view class="img" @click="toPage(goodlist.objectId)">
			<image
		  
		 class="spimage"
		  
		  :src="goodlist.imageurl"
		 
		/>
		</view>
		<view class="text">
			
			
			<span class="jp2">{{goodlist.name}}</span>
		</view>
		

	</view>
</template>

<script>
	export default {
		name:'sp',
		props:['goodlist'],
		data() {
			return {
				
			}
		},
		
		
		methods: {
			
			toPage(item){
				console.log(item)
				
				
				 uni.navigateTo({
				 	url:`../zhanshi/zhanshi?id=`+item
				 })
				  
				
				
				
				
			}
		}
	}
</script>

<style>
	.spimage{
		width: 100%;
		height: 199px;
	}
	.div{
		background-color: white;
		width: 46vw;
		
		/* display: inline-block; */
		/* margin: 0 auto; */
	}
.img{
	
	/* height: fit-content; */
	text-align: center;
}
.text{
	
	height: 40px;
	text-align: center;
	line-height: 40px;
	font-size: 13px;

}
.jp{
		font-size: 10px;
			color: red;
	}
	
</style>
